#!/bin/bash
DATADIR=`pwd`

if [ -f $DATADIR"/eosd.pid" ]; then
pid=`cat $DATADIR"/eosd.pid"`
fi
if [ ! -d "/proc/$pid/fd" ]; then
  echo "no process"
else
  echo "process live"
fi